#include "app_message.h"
#include "app_common.h"
#include "stdio.h"

int main(int argc, char const *argv[])
{
    char bytes[9] = {0x01, 0x02, 0x04, 0x58, 0x61, 0x62, 0x63, 0x64, 0x65};
    char *json = app_message_bytes_to_json(bytes, 9);
    printf("json:%s\n", json);

    char buf[100] = {0};
    int len = app_message_json_to_bytes(json, buf, 100);
    app_common_print_hex(buf, len);

    return 0;
}
